#ifndef INTERVIEWCARD_H
#define INTERVIEWCARD_H

#include <QWidget>
#include "model/data.h"

namespace Ui {
class InterviewCard;
}

class InterviewCard : public QWidget
{
    Q_OBJECT

public:
    explicit InterviewCard(QWidget *parent = nullptr);
    ~InterviewCard();

    void set(const model::InterviewInfo& interviewInfo);

signals:
    void clicked();

private:
    void init();
    void initStyleSheet();
    void initPanel();

    void mousePressEvent(QMouseEvent *event) override;
    void mouseReleaseEvent(QMouseEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;

private:
    Ui::InterviewCard *ui;
};

#endif // INTERVIEWCARD_H
